package com.ruoyi.contact.service.impl;

import com.ruoyi.contact.mapper.ContactReportMapper;
import com.ruoyi.contact.service.IContactReportService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public class ContactReportServiceImpl implements IContactReportService {
    @Autowired
    ContactReportMapper contactReportMapper;
    @Override
    public List<Map<String,Integer>> selectContactCountByCategory(){
        return contactReportMapper.selectContactCountByCategory();
    }
    @Override
    public List<Map<String,Object>> selectContactCountByMonth(){
        return contactReportMapper.selectContactCountByMonth();
    }
}
